package com.example.loggingservice.service;


import com.example.loggingservice.log.LogDTO;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface LogMapper {
    @Insert("INSERT INTO operation_logs(user_id, action, ip, detail) " +
            "VALUES(#{userId}, #{action}, #{ip}, #{detail})")
    void insert(LogDTO log);
}
